<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/xbbcrm/tpxbb/Public/css/styles.css" />
 </head>
 
<body>
<table border="1" cellspacing="0" cellpadding="0"  class="altrowstable" id="alternatecolor">
<tr >
 <th><a href="<?php echo U('order/index');?>">首页</a></th>
  <th><a href="<?php echo U('shop/index');?>">平台店面</a></th>
  <th><a href="<?php echo U('wm/dingdan');?>">订单列表</a></th>
 <th><a href="<?php echo U('wm/yzdeal');?>">有赞订单</a></th>
 <th><a href="<?php echo U('wm/mtdeal');?>">美团订单</a></th>
 <th><a href="<?php echo U('order/list');?>">最新数据</a></th>
 <th><a href="<?php echo U('order/getdata');?>"> 更新闪送数据</a></th>
 <th><a href="<?php echo U('order/dealdata');?>"> 处理闪送数据</a></th>
 <th> 地图配置</th> 
  <th><a href="<?php echo U('wm/baidu');?>">上传百度数据</a></th>
 <th><a href="<?php echo U('login/logout');?>">退出</a></th>
</tr>
</table>
 

<a href="<?php echo U('shop/plat');?>">平台管理</a>
<a href="<?php echo U('shop/dm');?>">店面管理</a></br>

</br>
店面列表：
</br>
<table border="1" cellspacing="0" cellpadding="0" class="altrowstable"
	id="alternatecolor">
	<tr>
		<td>序号</td>
		<td>店面id</td>
		<td>店面名称</td>
		<td>所属平台</td>
		<td>店面客户经理</td>
		<td>手机</td>
		<td>地址</td>
		<td>网址</td>
		<td>账号</td>
		<td>密码</td>
		<td>cookie</td>
		<td>备注</td>
		<td>修改时间</td>
		<td>操作</td>
		<td></td>
	</tr>
	<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$arr): $mod = ($i % 2 );++$i;?><tr>
		<td><?php echo ($i); ?></td>
		<td><?php echo ($arr["dmid"]); ?></td>
		<td><?php echo ($arr["dmname"]); ?></td>
		<td><?php echo ($arr["ptid"]); ?></td>
		<td><?php echo ($arr["manager"]); ?></td>
		<td><?php echo ($arr["mobile"]); ?></td>
		<td><?php echo ($arr["address"]); ?></td>
		<td><?php echo ($arr["url"]); ?></td>
		<td><?php echo ($arr["user"]); ?></td>
		<td><?php echo ($arr["password"]); ?></td>
		<td><?php echo ($arr["cookie"]); ?></td>
		<td><?php echo ($arr["memo"]); ?></td>
		<td><?php echo ($arr["date"]); ?></td>
		<td><a href="<?php echo U('shop/dmupdate',array('id'=>$arr[id]));?>">修改</a></td>
		<td><a href="<?php echo U('shop/dm',array('op'=>'del','id'=>$arr[id]));?>">
				删除</a></td>
	</tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>

</br></br>
新建店面：
</br></br>

<form action="/xbbcrm/tpxbb/shop/dm" method="post">
	<table border="1" cellspacing="0" cellpadding="0" class="altrowstable"
		id="alternatecolor">

		<tr>
			<td>店面id：</td>
			<td><input type="text" name="dmid" value="" /></td>
		</tr>
		<tr>
			<td>店面名称：</td>
			<td><input type="text" name="dmname" value="" /></td>
		</tr>
		<tr>
			<td>所属平台：</td>
			<td>
			<select name="ptid">
					<?php if(is_array($ptlist)): $i = 0; $__LIST__ = $ptlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$arr): $mod = ($i % 2 );++$i;?><option value="<?php echo ($arr["ptid"]); ?>"><?php echo ($arr["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
			</select>
			</td>
		</tr>
		<tr>
			<td>店面客户经理：</td>
			<td><input type="text" name="manager" value="" /></td>
		</tr>
		<tr>
			<td>手机：</td>
			<td><input type="text" name="mobile" /></td>
		</tr>
		<tr>
			<td>地址：</td>
			<td><input type="text" name="address" /></td>
		</tr>
		<tr>
			<td>网址：</td>
			<td><input type="text" name="url" /></td>
		</tr>
		<tr>
			<td>账号：</td>
			<td><input type="text" name="user" /></td>
		</tr>
		<tr>
			<td>密码：</td>
			<td><input type="text" name="password" /></td>
		</tr>
		<tr>
			<td>cookie：</td>
			<td><input type="text" name="cookie" /></td>
		</tr>
		<tr>
			<td>备注：</td>
			<td><input type="text" name="memo" /></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" value="新增"></td>
		</tr>


	</table>
</form>



</body>
</html>